package shard.db.demo.jdbc;

import io.shardingsphere.shardingjdbc.spring.boot.SpringBootConfiguration;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {SpringBootConfiguration.class, DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = "shard.db.demo")
public class JdbcApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(JdbcApplication.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);
        ServiceDemo service = new ServiceDemo();
        service.insertTable();
    }

}
